package system.bean;

import java.util.Collection;
import java.util.Vector;

import util.ObjectRelationMappable;
import util.ObjectRelationMappingUtil;

public class RoleOperationRelation implements ObjectRelationMappable {

	private int roleId;
	private int operationId;
	
	public final static String tableName = "roleoperations";
	private final static Vector<RoleOperationRelation> orProperties = new Vector<RoleOperationRelation>();
	
	private static void initORProperties(RoleOperationRelation doc){
		if (orProperties.size() > 0)return;
        ObjectRelationMappingUtil.addORProperty(doc, "roleId"      ,"roleId"      , orProperties);
        ObjectRelationMappingUtil.addORProperty(doc, "operationId" ,"operationId" , orProperties);
	}
	
	public RoleOperationRelation(){
		initORProperties(this);
	}
	
	@Override
	public Collection<RoleOperationRelation> getORProperties() {
		return orProperties;
	}

	@Override
	public String getTableName() {
		return tableName;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public int getOperationId() {
		return operationId;
	}

	public void setOperationId(int operationId) {
		this.operationId = operationId;
	}

}
